﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html>
<html lang="en">
<script type="text/javascript" >
    function isIE() { //ie?  
        if (!!window.ActiveXObject || "ActiveXObject" in window){
            return true;  
        }
        else { 
            return false;  
        }
    }  
 	if(isIE()){
 		alert("你好，此系统不支持IE浏览器，请使用Google或Firefox浏览器!");
 		window.location.href="/maibow-global/logout.do";
 	}
</script>
<head>
<title>初现管理后台</title>
<link rel="icon" href="<%=path%>/favicon.ico" type="image/x-icon">  
<link rel="shortcut icon" href="<%=path%>/favicon.ico" type="image/x-icon">  
<base href="<%=basePath%>">
<!-- jsp文件头和头部 -->
<%@ include file="main_top.jsp"%>

		<style type="text/css">
		.commitopacity{position:absolute; width:100%; height:100px; background:#7f7f7f; filter:alpha(opacity=50); -moz-opacity:0.8; -khtml-opacity: 0.5; opacity: 0.5; top:0px; z-index:99999;}
		</style>
		
		<!-- 新订单DIV弹出层 -->
		<style type="text/css">
			*{margin:0;padding:0;}
			#pop{background:#fff;width:58%;height:200px;border:1px solid #e0e0e0;font-size:20px;position: fixed;right:10px;bottom:10px;}
			#popHead{line-height:32px;background:#f6f0f3;border-bottom:1px solid #e0e0e0;position:relative;font-size:20px;padding:0 0 0 10px;}
			#popHead h2{font-size:24px;color:#666;line-height:32px;height:32px;}
			#popHead #popClose{position:absolute;right:10px;top:1px;}
			#popHead a#popClose:hover{color:#f00;cursor:pointer;}
			#popContent{padding:5px 10px;}
			#popTitle a{line-height:24px;font-size:20px;font-family:'微软雅黑';color:#333;font-weight:bold;text-decoration:none;}
			#popTitle a:hover{color:#f60;}
			#popIntro{text-indent:24px;line-height:160%;margin:5px 0;color:#666;}
			#popMore{text-align:right;border-top:1px dotted #ccc;line-height:24px;margin:8px 0 0 0;}
			#popMore a{color:#f60;}
			#popMore a:hover{color:#f00;}
		</style>
</head>
<body>

	<!-- 页面顶部¨ -->
	<%@ include file="main_head.jsp"%>

	<div class="container-fluid" id="main-container">
		<a href="#" id="menu-toggler"><span></span></a>
		<!-- menu toggler -->

		<!-- 左侧菜单 -->
		<%@ include file="main_left.jsp"%>

		<div id="main-content" class="clearfix">

			<div id="jzts" style="display:none; width:100%; position:fixed; z-index:99999999;">
			<div class="commitopacity" id="bkbgjz"></div>
			<div style="padding-left: 70%;padding-top: 1px;">
				<div style="float: left;margin-top: 3px;"><img src="static/images/loadingi.gif" /> </div>
				<div style="margin-top: -5px;"><h4 class="lighter block red">&nbsp;加载中 ...</h4></div>
			</div>
			</div>

			<div>
				<iframe name="mainFrame" id="mainFrame" frameborder="0" src="mainTab.do" style="margin:0 auto;width:100%;height:100%;"></iframe>
			</div>

			<!-- 换肤 -->
			<div id="ace-settings-container">
				<div class="btn btn-app btn-mini btn-warning" id="ace-settings-btn">
					<i class="icon-cog"></i>
				</div>
				<div id="ace-settings-box">
					<div>
						<div class="pull-left">
							<select id="skin-colorpicker" class="hidden">
								<option data-class="default" value="#438EB9"
									<c:if test="${operator.skin =='default' }">selected</c:if>>#438EB9</option>
								<option data-class="skin-1" value="#222A2D"
									<c:if test="${operator.skin =='skin-1' }">selected</c:if>>#222A2D</option>
								<option data-class="skin-2" value="#C6487E"
									<c:if test="${operator.skin =='skin-2' }">selected</c:if>>#C6487E</option>
								<option data-class="skin-3" value="#D0D0D0"
									<c:if test="${operator.skin =='skin-3' }">selected</c:if>>#D0D0D0</option>
							</select>
						</div>
						<span>&nbsp; 选择皮肤</span>
					</div>
					<div>
						<label><input type='checkbox' name='menusf' id="menusf"
							onclick="menusf();" /><span class="lbl" style="padding-top: 5px;">菜单缩放</span></label>
					</div>
				</div>
			</div>
			<!--/#ace-settings-container-->

		</div>
		<!-- #main-content -->
	</div>
	
	<!-- 新订单DIV弹出层 -->
	<div id="pop" style="display:none;">
		<div id="popHead">
		<a id="popClose" title="关闭">关闭</a>
		<h2>温馨提示</h2>
		</div>
		<div id="popContent">
		<dl>
			<dt id="popTitle"><a href="javascript:void(0)" onclick="clickMenu('order/list.do');">新的订单</a></dt>
			<dd id="popIntro">有新的订单，请尽快处理！</dd>
		</dl>
		<p id="popMore"><a href="javascript:void(0)" onclick="clickMenu('order/list.do');">点击查看 »</a></p>
		</div>
	</div>
	
	<!--/.fluid-container#main-container-->
	<!-- basic scripts -->
		<!-- 引入 -->
		<script type="text/javascript">window.jQuery || document.write("<script src='static/js/jquery-1.9.1.min.js'>\x3C/script>");</script>
		<script src="static/js/bootstrap.min.js"></script>
		<script src="static/js/ace-elements.min.js"></script>
		<script src="static/js/ace.min.js"></script>
		<!-- 引入 -->
		
		<script type="text/javascript" src="static/js/jquery.cookie.js"></script>
		<script type="text/javascript" src="static/js/myjs/menusf.js"></script>
		
		<script type="text/javascript">
		$(function() {
			if (typeof ($.cookie('menusf')) == "undefined") {
				$("#menusf").attr("checked", true);
				$("#sidebar").attr("class", "menu-min");
			} else {
				$("#sidebar").attr("class", "");
			}
		});
		function cmainFrame(){
			var hmain = document.getElementById("mainFrame");
			var bheight = document.documentElement.clientHeight;
			hmain .style.width = '100%';
			hmain .style.height = (bheight  - 51) + 'px';
			var bkbgjz = document.getElementById("bkbgjz");
			bkbgjz .style.height = (bheight  - 41) + 'px';
			
		}
		cmainFrame();
		window.onresize=function(){  
			cmainFrame();
		};
		jzts();
		</script>
		
		<script type="text/javascript" src="static/js/yanue.pop.js"></script>
		<!--jquery右下角pop弹窗start -->
		<script type="text/javascript" >
			//使用参数：1.标题，2.链接地址，3.内容简介
			/* $(document).ready(function(){
				//alert("查看有没有新的订单!");
			 	setInterval(getnums, 10000);  
			}); */
			
			function getnums() {
				$.ajax({
					type : "PUT",
					url : "order/hasNewOrder" + ".json",
					//data:JSON.stringify(dicvalue),
					contentType : "application/json", //发送至服务器的类型
					//dataType : "json",     //预期服务器返回类型
					success : function(data) {
						//alert(data.string);
						//return false;
						if (data.string == "true") {
							var pop = new Pop("订单提醒",
									"order/list.do",
									"有新的订单来了，请及时处理！");
						}else{
							return;
						}
					}
				})
			}
		</script>
</body>
</html>
